﻿@model IEnumerable<Developer.Entity.Reviews>
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_UILayout.cshtml";
}
<link href="~/Assets/Plugs/HUI/laypage/1.2/skin/laypage.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="~/Content/UI/css/myprofile.css" />
<link rel="stylesheet" href="~/Assets/Plugs/layer_mobile/need/layer.css" />
<div class="mui-card">
    @foreach(var review in Model)
    {
        <div class="mdui-card mdui-shadow-8" style="margin-top:35px;">
            <div class="mdui-card-media">
                <img src="@review.Img" />
                <div class="mdui-card-media-covered mdui-card-media-covered-top">
                    <div class="mdui-card-primary">
                        <div class="mdui-card-primary-title">@review.Title</div>
                        <div class="mdui-card-primary-subtitle">@review.SubTitle</div>
                    </div>
                </div>
            </div>
            <div class="mdui-card-actions">
                <button class="mdui-btn mdui-ripple"><i class="mui-icon mui-icon-checkmarkempty"></i>@review.Subscribe</button>
                <button class="mdui-btn mdui-ripple"  id="show" onclick="show(@review.Id)"><i class="mui-icon mui-icon-redo"></i>查看</button>
            </div>
        </div>

    }

</div>


@if (Model.Count() > 5)
{
    <div id="adminPage"></div>
}

<script src="~/Content/scripts/jquery-1.10.2.min.js"></script>
<script src="~/Assets/Plugs/layer/layer.js"></script>
<script src="~/Assets/Plugs/layer/extend/layer.ext.js"></script>
<script type="text/javascript" src="/Assets/Plugs/HUI/laypage/1.2/laypage.js"></script>
<script src="~/Assets/Scripts/js.js"></script>
<script src="~/Assets/Scripts/Msg.js"></script>

<script>
    sf_page('adminPage', @ViewBag.pageCount);
    function show(rid) {
        self.location = "/Review/GetReview?rid=" + rid;
    }
</script>